﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Data;
using System.Globalization;
using System.Web.Script.Services;
using System.Web.Security;
using System.Web.Services;
using System.Collections.ObjectModel;
using System.Text;
using System.Configuration;

namespace TractRecord.Administration
{
    public partial class Default : TractRecordBasePage 
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }




        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public static ArrayList LoadUserStats()
        {
            ArrayList values = new ArrayList();

            // all users count
            values.Add(Membership.GetAllUsers().Count);
            
            // all active users count
            values.Add(Membership.GetNumberOfUsersOnline());

            return values;
        }
    }
}